Fix segmentation fault (temp_buffer size adjusted).
authoroliskoli <oliskoli@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Sat, 18 Mar 2006 19:56:19 +0000 (19:56 +0000)
committeroliskoli <oliskoli@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Sat, 18 Mar 2006 19:56:19 +0000 (19:56 +0000)
gpsbabel/tpo.c

index 80c8e46e119f02d7c225e441b6da958e28dac9b2..d67d95bdf40f211d964629eeaeb567d43862c248 100644 (file)
@@ -724,7 +724,7 @@ tpo_track_disp(const waypoint *waypointp)
 static void
 tpo_track_tlr(const route_head *rte)
 {
-       unsigned char temp_buffer[2];
+       unsigned char temp_buffer[4];
 
        unsigned char unknown1[] = { 0x06, 0x00 };